﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="template.aspx.cs" Inherits="Widgets_Generic_FixedIFrame_template" %>
<div class="widget_header_main">
<table border="0" cellspacing="0" cellpadding="3" width="100%" class="widget_header_tbl">
<tbody>
   <tr valign="top" class="widget_header_tbl">
      <td width="80%" class="widget_header" id="wdivh{0}">
         <img id="img{0}" src="[img]" border="0" />
         <span id="wdivht{0}">[title]</span>
         <input type="text" id="wdivhi{0}" class="widget_title_input" style="display:none" />
      </td>
      <td width="20%" align="right">
         <a id="wdivca{0}" onmouseout="collapse('wdivcd{0}')"><div id="wdivcad{0}" class="MenuCmd"></div></a>
      </td>
   </tr>
</tbody>
</table>
</div>
<div class="widget_body" id="wdivb{0}">
<iframe 
id="iframe{0}"
width="100%" 
height="100%"
src="https://exchange.nus.edu.sg/exchange/<%= UserID %>/">
</iframe>
</div>
</div>
<div class="widget_footer">
<table border="0" width="100%">
<tbody>
<tr valign="top">
   <td width="*"><div class="widget_footer_collapse" id="wdivf{0}" onclick="W{0}.instance.ToggleExpand();"></div></td>
   <td align="right" width="14px"><div class="widget_heighthandle" id="wdivhh{0}" onmousedown="Q_Drag.start(event, 'resize_y', 'iframe{0}|wdivb{0}', {0});return false;"></td>
</tr>
</tbody>
</table>
</div>

<!-- MENU -->
<div class="DropDownMenu" id="wdivcd{0}" onmouseover="cancelcollapse()" onmouseout="collapse('wdivcad{0}')">
<ul class='DDMenu' id="wdivc{0}">
   <li><a onclick="$WI({0}).TitleEdit();collapseMenu('wdivcad{0}');">Edit Widget Title</a></li>
   <li><a onclick="$WI({0}).Refresh();collapseMenu('wdivcad{0}');">Refresh Widget</a></li>
   <li><a onclick="$WI({0}).Delete();collapseMenu('wdivcad{0}');">Delete Widget</a></li>
   <li><a onclick="$WI({0}).ToggleExpand();collapseMenu('wdivcad{0}');">Toggle Size</a></li>
</ul>
</div>